<script language="javascript" src="/js/script.js"></script>
<?php
class Lion_View_Helper_AdminToolBar extends Zend_Controller_Action_Helper_Abstract
{
    public function adminToolBar($module, $action, $addurl, $editurl, $delurl, $backurl)
    {        
        switch($module) 
        {
            case "user" :
                $backurl = "/admin/user/";      
                break;
                
            case "hotel" :
            	$backurl = "/admin/hotel/";
            	break;    
        }
?>
    <div class="bodtext-head">
        <?php 
        	if($module == "aboutcountry")
        	{
        		$mod_text = "About Sri Lanka";
        	} else {
        		$mod_text = $module; 	
        	}
        ?> 
        <h2><?php echo ucfirst($mod_text); ?></h2>
        <?php
           if($module == "language" && $action == "index") {
        ?>
        <div class="bodtext-path" style="color:#FFF;">
            <a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/home');">Home Page Content</a>|<a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/topnav');">Top Navigation</a>|<a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/mainnav');">Main Navigation</a>|<a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/quickbook');">Quick Booking Form</a>|<a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/quicksearch');">Quick Search</a>|<a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/hotel');">Hotels</a>|<a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/alerts');">Alerts</a>|<a href="javascript: void(0);" onclick="loadPage('/admin/translate/manage/section/map');">Map</a>
        </div>
        <?php
          }
        ?>
        <div class="edit-icoset">
        <?php if($action == "index") { ?>
        <!--<input type='text' name='' class="search-input1"/>-->
        <!--<a href="#" title="Search" style="margin-top:1px;"><img src="/images/admin/icons/search.gif" alt="" style="right:0; padding:0 0 0 2px;" /></a>-->
        <a href="javascript: void(0);" onclick="loadPage('<?php echo $addurl; ?>');" title=""><img src="/images/admin/icons/new.gif" alt=""/>New</a>
        <!--<a href="javascript: void(0);" title="" id="delete<?php //echo $module; ?>"><img src="/images/admin/icons/disable.gif" alt=""/>Delete</a> -->
        <?php } ?>
        
        <?php if($action == "add") { ?>
        <a href="javascript: void(0);" title="" id="save<?php echo $module; ?>" onclick="save<?php echo $module; ?>();"><img src="/images/admin/icons/save-2.gif" alt="" />Save</a>
        <a href="javascript: void(0);" title="Back Page" onclick="getBackPage('<?php echo $backurl; ?>')"><img src="/images/admin/icons/t-prv.gif" alt=""/>Back</a>
        <?php } if($action == "edit" && $module == "user") { ?>
        <a href="javascript: void(0);" title="" id="changepassword" onClick="showEditPassword()"><img src="/images/admin/icons/edit.gif" alt="" onClick="showEditPassword()" />Change Password</a>
        <?php } if($action == "edit") { ?>
        <a href="javascript: void(0);" title="" id="update<?php echo $module; ?>" onclick="update<?php echo $module; ?>();"><img src="/images/admin/icons/save-2.gif" alt="" />Update</a>
        <a href="javascript: void(0);" title="" id="delete<?php echo $module; ?>" onclick="delete<?php echo $module; ?>();"><img src="/images/admin/icons/disable.gif" alt=""/>Delete</a>
        <a href="javascript: void(0);" title="Back Page" onclick="getBackPage('<?php echo $backurl; ?>')"><img src="/images/admin/icons/t-prv.gif" alt=""/>Back</a>
        <?php } ?>
        
        
        </div>
    </div>
<?php
    }
}
?>